const fs = require('fs');

function readFile(filePath) {
    return new Promise((resolve, reject) => {
        fs.readFile(filePath, 'utf8', (err, data) => {
            if (err) {
                reject(err);
            } else {
                resolve(data);
            }
        });
    });
}

;
/* async function go() {
    let dataA = await readFile('./data/1.txt');
    let dataB = await readFile('./data/22.txt');
    let dataC = await readFile('./data/3.txt');
    console.log(dataA, dataB, dataC);

} */

console.log('start');

function go() {
    for (let i = 0; i < 100; i++) {
        console.log(i);

    }

}

go();

console.log('end');